import { request } from '@/utils/request.js';

// 查询客户列表
export function getUserProjectList(query) {
    return request({
        url: '/cloud/userProject/index',
        method: 'get',
        params: query
    });
}
// 改变客户状态
export function changeStatus(query) {
    return request({
        url: 'cloud/userProject/changeStatus',
        method: 'post',
        data: query
    });
}
// 分配数量
export function setMessageAvailable(query) {
    return request({
        url: 'cloud/userProject/setMessageAvailable',
        method: 'post',
        data: query
    });
}
// 分配客服账号
export function assignCustomerServices(query) {
    return request({
        url: 'cloud/userProject/assignCustomerServices',
        method: 'post',
        data: query
    });
}
// 根据key获取项目id
export function getProjectId(query) {
    return request({
        url: 'cloud/project/getOneByProjectKey',
        method: 'get',
        params: query
    });
}
// 补号
export function addReplenish(query) {
    return request({
        url: 'cloud/userProject/replenish',
        method: 'post',
        data: query
    });
}
// 批量释放客户绑定的账号
export function unbindPhoneinfo(query) {
    return request({
        url: 'cloud/userProject/unbindPhoneinfo',
        method: 'post',
        data: query
    });
}
// 停用账号
export function batchChangeStatus(query) {
    return request({
        url: 'cloud/userProject/batchChangeStatus',
        method: 'post',
        data: query
    });
}

//重发模板列表
export function resendTemplate(query) {
    return request({
        url: 'cloud/resendTemplate/index',
        method: 'get',
        params: query
    });
}
//删除重发模板
export function myDelete(query) {
    return request({
        url: 'cloud/resendTemplate/myDelete',
        method: 'post',
        data: query
    });
}
//重发模板详情
export function getDetailPageList(query) {
    return request({
        url: 'cloud/resendTemplate/getDetailPageList',
        method: 'get',
        params: query
    });
}
//设置重打模板
export function setIsChecked(query) {
    return request({
        url: 'cloud/resendTemplate/setIsChecked',
        method: 'post',
        data: query
    });
}
